package com.machuxin.course.patterns.decorator;

/**
 * 香肠装饰器
 */
public class SausagePancakeDecorator extends PancakeDecorator {

    public SausagePancakeDecorator(Pancake pancake) {
        super(pancake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "加一个香肠";
    }

    @Override
    public Integer getPrice() {
        return super.getPrice() + 2;
    }
}
